package com.example.mynewsapp.model

import com.google.gson.annotations.SerializedName

data class VideoModel(
        @SerializedName("code")
        val status: String = "",

        @SerializedName("message")
        val message: String = "",

        @SerializedName("result")
        val result: List<Result>
        ){
        data class Result(
                @SerializedName("data")
                var data: DataContent
                ){
                data class DataContent(
                        @SerializedName("content")
                        var videoContent : ContentData){
                        data class  ContentData(
                                @SerializedName("data")
                                var videoData : VideoInfo
                        ){
                                data class VideoInfo (
                                        @SerializedName("date")
                                        var date : Long,
                                        @SerializedName("cover")
                                        var cover : Cover,
                                        @SerializedName("webUrl")
                                        var webUrl : WebUrl,
                                        @SerializedName("description")
                                        var description : String,
                                        @SerializedName("title")
                                        var title : String,
                                        @SerializedName("provider")
                                        var provider : ViderProvider
                                ){
                                        data class Cover (
                                                @SerializedName("feed")
                                                var feed : String
                                        )
                                        data class WebUrl(
                                                @SerializedName("forWeibo")
                                                var raw : String
                                        )
                                        data class ViderProvider(
                                                @SerializedName("name")
                                                var name : String
                                        )
                                }
                        }
                }
        }
}